-
Notifications
You must be signed in to change notification settings - Fork 868
Increase multipart upload default part size to 8MB #4032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
do we have any existing test cases that would use the default value that we could verify somehow the part size is 8MB? or did you somehow test manually to verify things? |
partSize = S3Constants.MinPartSize; | ||
} | ||
// SEP Formula: Math.Max(targetPartSize, contentLength / 10_000) | ||
long calculatedSize = Math.Max(targetPartSize, contentLength / 10_000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one is my fault. i think in the ticket i replaced s3constants.maxnumberofparts just to be more clear but S3Constants.MaxNumberOfParts is equal to 10,000 so we should use the constant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
generator/.DevConfigs/252dad9f-d2a9-4d49-bff8-000924f0adc3.json
Outdated
Show resolved
Hide resolved
Added an integration test that performs a multipart upload and then checks the first part size and validates that it is 8MB. |
Description
Increasing the default part size for S3 multipart upload from 5MB to 8MB when no part size is specified. This will reduce the number of API calls for multipart uploads.
Motivation and Context
DOTNET-8273
Testing
Ran dry run and it succeeded
Screenshots (if appropriate)
Types of changes
Checklist
License